<template>
  <el-row :data="data">
    <el-row v-for="(item, index) in data.signModel" :key="index">
      <el-row class="signInfo-header" v-if="isShowTitleFlag == true">
        <el-col :span="12"><h4>{{item.tableHeader}}</h4></el-col>
        <el-col :span="12" v-if="item.deleteFlag" class="txt-right">
          <i class="el-icon-circle-close warning" @click="delOperator(index)">删除</i>
        </el-col>
      </el-row>
      <div v-for="(item2, index2) in item.tableArray" :key="index2">
        <el-col v-if=!isShowFlag :span="24" class="item-input">
          <el-col :span="12" class="line-distance">{{item2.name}}：</el-col>
          <el-col class="line-distance" :span="12">{{item2.value}}</el-col>
        </el-col>
        <el-col v-if=isShowFlag :span="12" class="item-input">
          <el-col :span="12" class="line-distance">{{item2.name}}：</el-col>
          <el-col class="line-distance" v-if=!modifyShowFlag :span="12">{{item2.value}}</el-col>
          <el-col v-if=modifyShowFlag :span="12" class="line-distance item-rightSet">
            <el-input class="sign-input" v-model="item2.value" placeholder="请输入内容"></el-input>
          </el-col>
        </el-col>
      </div>
    </el-row>
  </el-row>
</template>

<script>
  export default {
    name: "bizSignInfo",
    props: ['data', 'number','modifyShowFlag', 'isShowFlag', 'isShowTitleFlag'],
    data () {
      return {

      }
    },
    mounted(){
      let self = this
      console.log(self.data)
    },
    methods: {
      delOperator (number) {
        this.$emit('delOperator', number)
      }
    }
  }
</script>

<style scoped>
  .warning {
    color: red;
    cursor:pointer;
  }
  .signInfo-header{
    height: 26px;
    line-height: 26px;
  }
  .line-distance{
    height: 40px;
    line-height: 40px;
  }
  .item-rightSet{
    padding-right: 5px;
  }
  .sign-input{
    font-size: 12px;
    line-height: 34px;
    height: 34px;
  }
  .item-input{
    margin-bottom: 10px;
  }
</style>
